<style>
    table{
        width: 100% !important;
    }
</style>
<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true',url:'{:url('Member/lookaboutcar')}',where:{member_id:'{$member_id}'}, page:true}" lay-filter="edit-table">

    <thead>
    <tr>
        <th lay-data="{field:'contractcar_bigontime'}">约车开始时间</th>
        <th lay-data="{field:'contractcar_endtime'}">约车结束时间</th>
        <th lay-data="{toolbar:'#type'}">租车类型</th>
        <th lay-data="{field:'less_money'}">车型</th>
        <th lay-data="{field:'less_money'}">车牌号</th>
    </tr>
    </thead>
</table>

<script type="text/html" id="type">
    {{#  if(d.contractcar_type == 1){ }}
    车辆及驾驶员
    {{#  } else if(d.contractcar_type == 2) { }}
    驾驶员
    {{#  } else if(d.contractcar_type == 3) { }}
    车辆
    {{#  } }}
</script>